var console = console || null;
function log(value){
	if(console){
		console.log(value);
	}
	document.writeln(value);
	document.writeln("<br/>");
}
function logClose(){
	setTimeout(function(){
		document.close();
	},1000)
}